

package javaapp5;


public class JavaApp5 {

   
    public static void main(String[] args) {
        String Example1 = "App";
        String Example2 = "Ape";
        System.out.println(Example1);
        String result1, result2;
        int result;
        result1 = Example1.toUpperCase();
        result2 = Example2.toUpperCase();
        System.out.println(result1);
        result = Example1.compareTo(Example2);
        if (result<0){
            System.out.println("Word 1 is less than word 2");
        }
        else if (result>0){
            System.out.println("Word 1 is more than word 2");    
        }
        else{
            System.out.println("Word 1 and word 2 are the same");
        }
        
        System.exit(0);
    }
    
}
